package cn.bmbanjia.zebra2024.frame.validation;


import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Documented
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = IdNumberValidator.class)
public @interface IdNumber {

    String message() default "IdNumber regex false";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
